package com.example.demo.entity.model;


public class SmsReport {
    private static final char SPLIT_CHAR = '\0';
    private String spAccountId;
    private long msgId;
    private String destId;//给用户发送短信的号码
    private String terminalId;//发给谁的
    private String submitTime;
    private String doneTime;
    private String state;
    
    public String getSpAccountId() {
        return spAccountId;
    }

    public void setSpAccountId(String spAccountId) {
        this.spAccountId = spAccountId;
    }

    public long getMsgId() {
        return msgId;
    }

    public void setMsgId(long msgId) {
        this.msgId = msgId;
    }

    public String getDestId() {
        return destId;
    }

    public void setDestId(String destId) {
        this.destId = destId;
    }

    public String getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public String getSubmitTime() {
        return submitTime;
    }

    @Override
    public String toString() {
        return "{\"SmsReport\":{"
                + ",\"spAccountId\":\"" + spAccountId + "\""
                + ",\"msgId\":\"" + msgId + "\""
                + ",\"destId\":\"" + destId + "\""
                + ",\"terminalId\":\"" + terminalId + "\""
                + ",\"submitTime\":\"" + submitTime + "\""
                + ",\"doneTime\":\"" + doneTime + "\""
                + ",\"state\":\"" + state + "\""
                + "}}";
    }

    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }

    public String getDoneTime() {
        return doneTime;
    }

    public void setDoneTime(String doneTime) {
        this.doneTime = doneTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String kafkaStr() {
        return spAccountId + SPLIT_CHAR +
                msgId + SPLIT_CHAR +
                destId + SPLIT_CHAR +
                terminalId + SPLIT_CHAR +
                submitTime + SPLIT_CHAR +
                doneTime + SPLIT_CHAR +
                state;
    }
}
